package com.chinasoft.zhang;

import com.chinasoft.main.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class ZhangTrueWord implements TrueWord {
    List<String> wordList = new ArrayList<String>();

    public ZhangTrueWord() {
        wordList.add("天天玩游戏 ！");
        wordList.add("不用上课了 ！");
        wordList.add("大家 好好 玩 ！ ！");
    }

    public String getName() {
        return "张学生";
    }

    public String getWord() {
        Random random = new Random();
        int index = random.nextInt(wordList.size());
        return this.wordList.get(index);
    }
}
